Macromedia Flex Article

A Step-by-Step Guide to Building an Application with Flex


Macromedia

Macromedia

 

Table of Contents

  1. Introduction
  2. Flex Store
  3. Code Walkthrough
  4. MXML Components
  5. ActionScript Components
  6. Writing Code

This article provides a comprehensive introduction to Flex. You will first explore Flex Store, a shopping cart application built with Flex. Then you will be introduced you to some of the best practices behind the Flex Store architecture. And finally, you will have the opportunity to experience with the Flex programming language by rewriting a subset of the Flex Store application.

Just as they do with traditional applications, Flex architects and developers:

  • Define and implement a suitable object model for the application
  • Choose appropriate relationships between objects (inheritance vs. association, etc...)
  • Identify and implement applicable design patterns
  • Define and implement a suitable messaging scheme between local objects
  • Define and implement the appropriate infrastructure to communicate with remote services
  • Implement a framework for the application

This guide walks you through a guided selling application that includes product display, sorting and filtering, drag-and-drop selection, a shopping cart, and a complete checkout procedure. While the application is small, it illustrates some of the most common patterns for building much larger Flex applications.

Requirements

You can follow along with this tutorial by browsing the online example of the Flex Store, or you can install Macromedia Flex.

If you browse the online example of the Flex Store, download the sample files for this tutorial:

flexstore.zip (4K)

Macromedia Flex

(Installed and running on any server and platform supported by Flex. Note that the Flex trial is available on CD from the Macromedia store for $8.99. To learn more about the Flex trial, please read the Flex Frequently Asked Questions.)



About the author

This content was authored by Macromedia, Inc.